import Vue from 'vue';
import TeamEditView from './views/TeamEditView.vue';
import i18n from '@src/locales';

// 处理注入的参数
let initData = {};

try {
  initData = JSON.parse(window._init);
} catch (error) {
  console.error(error);
  console.error('no init data')
}

const TeamEditViewComp = Vue.extend(TeamEditView);
const app = new TeamEditViewComp({
  i18n,
  propsData: { initData }
});

app.$mount('#app');

export default app;